<?php
class Captcha extends Controller {

   function captcha() {
      parent::Controller();
      $this->load->model('/public/captcha_model');
   }

   function image($captcha_id) {
      include(BASEPATH . 'plugins/kcaptcha/kcaptcha.php');
      $captcha = new KCAPTCHA();
      $this->captcha_model->insert($captcha_id, $captcha->getKeyString());
      die;
   }   
}
?>